package(default_visibility = ["//visibility:public"])

licenses(["notice"])

load(
    "@io_bazel_rules_go//go:def.bzl",
    "go_binary",
    "go_library",
    "go_test",
    "cgo_library",
)

go_library(
    name = "go_default_library",
    srcs = [
        "auth.go",
        "bootstrap.go",
        "plugins.go",
        "server.go",
        "server_linux.go",
    ],
    tags = ["automanaged"],
    deps = [
        "//cmd/kubelet/app/options:go_default_library",
        "//pkg/api:go_default_library",
        "//pkg/api/v1:go_default_library",
        "//pkg/apis/componentconfig:go_default_library",
        "//pkg/apis/componentconfig/v1alpha1:go_default_library",
        "//pkg/auth/authenticator:go_default_library",
        "//pkg/auth/authenticator/bearertoken:go_default_library",
        "//pkg/auth/authorizer:go_default_library",
        "//pkg/auth/group:go_default_library",
        "//pkg/capabilities:go_default_library",
        "//pkg/client/chaosclient:go_default_library",
        "//pkg/client/clientset_generated/release_1_5:go_default_library",
        "//pkg/client/clientset_generated/release_1_5/typed/authentication/v1beta1:go_default_library",
        "//pkg/client/clientset_generated/release_1_5/typed/authorization/v1beta1:go_default_library",
        "//pkg/client/clientset_generated/release_1_5/typed/certificates/v1alpha1:go_default_library",
        "//pkg/client/clientset_generated/release_1_5/typed/core/v1:go_default_library",
        "//pkg/client/record:go_default_library",
        "//pkg/client/restclient:go_default_library",
        "//pkg/client/unversioned/auth:go_default_library",
        "//pkg/client/unversioned/clientcmd:go_default_library",
        "//pkg/client/unversioned/clientcmd/api:go_default_library",
        "//pkg/cloudprovider:go_default_library",
        "//pkg/cloudprovider/providers:go_default_library",
        "//pkg/credentialprovider:go_default_library",
        "//pkg/credentialprovider/aws:go_default_library",
        "//pkg/credentialprovider/gcp:go_default_library",
        "//pkg/genericapiserver/authorizer:go_default_library",
        "//pkg/healthz:go_default_library",
        "//pkg/kubelet:go_default_library",
        "//pkg/kubelet/cadvisor:go_default_library",
        "//pkg/kubelet/cm:go_default_library",
        "//pkg/kubelet/config:go_default_library",
        "//pkg/kubelet/container:go_default_library",
        "//pkg/kubelet/dockertools:go_default_library",
        "//pkg/kubelet/network:go_default_library",
        "//pkg/kubelet/network/cni:go_default_library",
        "//pkg/kubelet/network/exec:go_default_library",
        "//pkg/kubelet/network/kubenet:go_default_library",
        "//pkg/kubelet/server:go_default_library",
        "//pkg/kubelet/types:go_default_library",
        "//pkg/kubelet/util/csr:go_default_library",
        "//pkg/runtime:go_default_library",
        "//pkg/types:go_default_library",
        "//pkg/util/cert:go_default_library",
        "//pkg/util/config:go_default_library",
        "//pkg/util/configz:go_default_library",
        "//pkg/util/flock:go_default_library",
        "//pkg/util/io:go_default_library",
        "//pkg/util/mount:go_default_library",
        "//pkg/util/node:go_default_library",
        "//pkg/util/oom:go_default_library",
        "//pkg/util/rlimit:go_default_library",
        "//pkg/util/runtime:go_default_library",
        "//pkg/util/wait:go_default_library",
        "//pkg/version:go_default_library",
        "//pkg/volume:go_default_library",
        "//pkg/volume/aws_ebs:go_default_library",
        "//pkg/volume/azure_dd:go_default_library",
        "//pkg/volume/azure_file:go_default_library",
        "//pkg/volume/cephfs:go_default_library",
        "//pkg/volume/cinder:go_default_library",
        "//pkg/volume/configmap:go_default_library",
        "//pkg/volume/downwardapi:go_default_library",
        "//pkg/volume/empty_dir:go_default_library",
        "//pkg/volume/fc:go_default_library",
        "//pkg/volume/flexvolume:go_default_library",
        "//pkg/volume/flocker:go_default_library",
        "//pkg/volume/gce_pd:go_default_library",
        "//pkg/volume/git_repo:go_default_library",
        "//pkg/volume/glusterfs:go_default_library",
        "//pkg/volume/host_path:go_default_library",
        "//pkg/volume/iscsi:go_default_library",
        "//pkg/volume/nfs:go_default_library",
        "//pkg/volume/photon_pd:go_default_library",
        "//pkg/volume/quobyte:go_default_library",
        "//pkg/volume/rbd:go_default_library",
        "//pkg/volume/secret:go_default_library",
        "//pkg/volume/vsphere_volume:go_default_library",
        "//plugin/pkg/auth/authenticator/request/anonymous:go_default_library",
        "//plugin/pkg/auth/authenticator/request/union:go_default_library",
        "//plugin/pkg/auth/authenticator/request/x509:go_default_library",
        "//plugin/pkg/auth/authenticator/token/webhook:go_default_library",
        "//plugin/pkg/auth/authorizer/webhook:go_default_library",
        "//vendor:github.com/golang/glog",
        "//vendor:github.com/spf13/cobra",
        "//vendor:github.com/spf13/pflag",
        "//vendor:golang.org/x/exp/inotify",
    ],
)

go_test(
    name = "go_default_test",
    srcs = [
        "bootstrap_test.go",
        "server_test.go",
    ],
    library = "go_default_library",
    tags = ["automanaged"],
    deps = [
        "//pkg/client/restclient:go_default_library",
        "//pkg/kubelet:go_default_library",
        "//pkg/util/config:go_default_library",
        "//pkg/util/diff:go_default_library",
    ],
)
